package com.cxt.service;

import com.baomidou.mybatisplus.core.incrementer.DefaultIdentifierGenerator;
import org.springframework.stereotype.Component;

@Component
public class IdGeneratorService {
    private final DefaultIdentifierGenerator identifierGenerator = new DefaultIdentifierGenerator();

    public Long generateId() {
        return identifierGenerator.nextId(null);
    }
}